import request from '@/utils/request'

// --------  视频管理 --------

let BASE_ADDRESS = '/work/video'


//分页查询
export const getVideoListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

//删除
export const getVideoListRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}


//id查询
export const getVideoListGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

//修改
export const getVideoListEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}


//添加
export const getVideoListveAddAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}

//文件id的文件下的视频
export const getConfigGetInfoFolderAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoFolder`,
        method: 'get',
        params: data
    })
}

//同文件夹下根据路径查询(是否有相同的文件名)
export const getConfigGetInfoPathAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoPath`,
        method: 'get',
        params: data
    })
}
